package anji.plus.system.mark.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class RecordItem implements Serializable {


    /**
     * 账目收支类型：收入或支出（收入0，支出1）
     */
    private String recordType;

    /**
     * 账目描述
     */
    private String recordDescribe;

    /**
     * 账目金额
     */
    private Double recordAmount;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 账目使用分类，默认0，
     */
    private String recordUseType;


}
